#define _CRT_SECURE_NO_WARNINGS 1
#include"SListNode.h"
void test()
{
	SLNode* plist = NULL;
	SLNPushBack(&plist, 1);
	SLNodePrint(plist);
	SLNPushBack(&plist, 2);
	SLNodePrint(plist);
	SLNPushBack(&plist, 3);
	SLNodePrint(plist);
	SLNPushBack(&plist, 4);
	SLNodePrint(plist);
	//SLNPushFront(&plist, 1);
	//SLNodePrint(plist);
	//SLNPushFront(&plist, 2);
	//SLNodePrint(plist);
	//SLNPushFront(&plist, 3);
	//SLNodePrint(plist);
	//SLNPushFront(&plist, 4);
	//SLNodePrint(plist);
	//SLNPopBack(&plist);
	//SLNodePrint(plist);
	//SLNPopBack(&plist);
	//SLNodePrint(plist);
	//SLNPopBack(&plist);
	//SLNodePrint(plist);
	//SLNPopBack(&plist);
	//SLNodePrint(plist);
	//SLNPopFront(&plist);
	//SLNodePrint(plist);
	//SLNPopFront(&plist);
	//SLNodePrint(plist);
	//SLNPopFront(&plist);
	//SLNodePrint(plist);
	//SLNPopFront(&plist);
	//SLNodePrint(plist);
	//SLNode* find = SLNodeFind(plist, 1);
	//if (find == NULL)
	//{
	//	printf("没找到\n");
	//}
	//else
	//{
	//	printf("找到了\n");
	//}
	//SLNodeInsert(&plist, find, 11);
	//SLNodePrint(plist);
	//SLNodeInsertAfter(find, 15);
	//SLNodePrint(plist);
	//SLNodeErase(&plist, find);
	//SLNodePrint(plist);
	//SLNodeEraseAfter(find);
	//SLNodePrint(plist);
	SLNodeDestroy(&plist);
}
int main()
{
	test();
	return 0;
}